<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="org.springframework.security.web.WebAttributes" %>

<%
String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head> 
<title>企业运营管理系统登录</title>
	<link rel="stylesheet" type="text/css" href="<%=path %>/resources/css/login.css"/>
</head>
<body style="padding:10px"> 
    <div id="login">
        <div id="loginlogo"></div>
        <div id="loginpanel">
            <div class="panel-h"></div>
            <div class="panel-c">
                <div class="panel-c-l">
                    <form id="login-form"action="<%=path %>/system/loginController/login.do" method="post">
                    <table cellpadding="0" cellspacing="0">
                        <tbody>
                         <tr>
                            <td align="left" colspan="2"> 
                             <h3>请使用企业运营管理系统账号登录</h3>
                            </td>
                            </tr> 
                            <tr>
                            <td align="right"><img alt="" src="<%=path %>/resources/images/main/username.gif"/>账号:</td><td align="left"><input type="text" name="username" id="txtUsername" class="login-text" /></td>
                            </tr>
                            <tr>
                            <td align="right"><img alt="" src="<%=path %>/resources/images/main/password.gif"/>密码:</td><td align="left"><input type="password" name="password" id="txtPassword" class="login-text" /></td>
                            </tr> 
                            <tr>
                            <td align="center" colspan="2">
                                <input type="submit" id="btnLogin" value="登录" class="login-btn" />
                            </td>
                            </tr>
                             <%
							String loginError=(String)request.getSession().getAttribute(WebAttributes.AUTHENTICATION_EXCEPTION);
							
							if(loginError!=null && !loginError.equals(""))
							{
							%>
							<tr>
							<td align="center" colspan="3">
									<font color="red"><%=loginError %></font>
							</td>
						</tr>
						<%
							}
						%> 
                        </tbody>
                    </table>
                    </form>
                </div>
                <div class="panel-c-r">
                    <p><font color="red">系统支持浏览器有IE8+、火狐、google<br>推荐使用IE9、火狐、google浏览器</font></p>
                    <p>请从左侧输入登录账号和密码登录</p>
                    <p>如果遇到系统问题，请联系网络管理员。</p>
                    <p>如果没有账号，请联系网站管理员。 </p>
                    <p>测试账户:admin/666666</p>
                    <p>......</p>
                </div>
            </div>
            <div class="panel-f"></div>
        </div>
         <div id="logincopyright">Copyright © 2016   http://my.oschina.net/deanjoson</div>
    </div>
    
    <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=634136381&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:634136381:41" alt="点击这里给我发消息" title="点击这里给我发消息"></a>
    
</body>
</html>
